package demo2;
class OutClass{

    class interClass{

    }
}
interface Work{
 void test() ;
        }

public class Test2 {
    public static void main(String[] args) {
        new Work(){
            @Override
            public void test() {
                System.out.println("Work");
            }
        }.test();
    }
}
